package org.test.threadlocal;

/**
 * Created by Hy on 2018/7/11.
 */
public class SequenceA implements Sequence{
    private static int number =0;
    public int getNumber() {
        return number+=1;
    }

    public static void main(String[] args) {
        Sequence sequence = new SequenceA();
        ClientThread thread1 = new ClientThread(sequence);
        ClientThread thread2 = new ClientThread(sequence);
        ClientThread thread3 = new ClientThread(sequence);
        thread1.start();
        thread2.start();
        thread3.start();
    }
}
